
<template>
  <el-dialog v-dialogDrag :visible.sync="currentDialogVisible" :top="common.getDialogTop()" title="条件属性配置" class="dialog-container" width="1200px" append-to-body @opened="dialogOpened">
    <div class="dialog-body">
      <div class="cond-left">
        <div class="header-box">
          <div class="title">条件项配置</div>
          <el-button-group>
            <el-button size="small" type="primary" title="添加新项目" @click="itemAdd"><i class="el-icon-yrt-jiahao"></i></el-button>
            <el-button size="small" type="primary" title="编辑选中项目" @click="itemEdit"><i class="el-icon-yrt-bianji"></i></el-button>
            <el-button size="small" type="primary" title="删除选中项目" @click="itemDelete"><i class="el-icon-yrt-shanchu1"></i></el-button>
          </el-button-group>
        </div>
        <div class="item-box">
          <template v-for="(item, index) in conditionPropertyItems">
            <div :key="index" :class="['item',current===item || currentEnter===item?'enter':'']" @mouseenter="itemMouseenter(item)" @mouseleave="itemMouseleave(item)" @click="itemClick(item)">{{ item.name }}</div>
          </template>
          <div v-if="!conditionPropertyItems.length" class="no-data">未设置条件项目</div>
        </div>
      </div>
      <div class="cond-center">
        <div class="header-box">
          <div class="title">条件配置</div>
          <el-button-group>
            <el-button size="small" type="primary" title="添加新条件" @click="conditionAdd"><i class="el-icon-yrt-jiahao"></i></el-button>
            <el-button size="small" type="primary" title="编辑选中条件" @click="conditionEdit"><i class="el-icon-yrt-bianji"></i></el-button>
            <el-button size="small" type="primary" title="删除选中条件" @click="conditionDelete"><i class="el-icon-yrt-shanchu1"></i></el-button>
          </el-button-group>
        </div>
        <div v-if="current" class="item-box">
          <div v-for="(item, index) in current.conditions" :key="index" :class="['item',currentCondition===item || currentConditionEnter===item?'enter':'']" @mouseenter="conditionMouseenter(item)" @mouseleave="conditionMouseleave(item)" @click="conditionClick(item)">
            <span v-if="index>0" class="txt">{{ item.join }}</span>
            <span v-if="item.type==='property' && !item.left" class="txt">当前值</span>
            <span v-else-if="['property', 'expression'].indexOf(item.type)>=0" class="txt">{{ item.left }}</span>
            <span class="txt">{{ item.operation }}</span>
            <span class="txt">{{ item.right }}</span>
          </div>
          <div v-if="!current.conditions.length" class="no-data">未设置条件</div>
        </div>
      </div>
      <div class="cond-right">
        <div class="title">属性配置</div>
        <div v-if="current" class="property-box">
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.forecolorChecked">前景色</el-checkbox>
            </div>
            <div v-if="check.forecolorChecked" class="scope-box">
              <el-color-picker v-model="current.cellStyle.forecolor" show-alpha size="medium" :predefine="toolHelper.predefineColors" title="字体颜色" class="color-picker"></el-color-picker>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.forecolorScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.bgcolorChecked">背景色</el-checkbox>
            </div>
            <div v-if="check.bgcolorChecked" class="scope-box">
              <el-color-picker v-model="current.cellStyle.bgcolor" show-alpha size="medium" :predefine="toolHelper.predefineColors" title="背景色" class="color-picker"></el-color-picker>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.bgcolorScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.fontFamilyChecked">字体</el-checkbox>
            </div>
            <div v-if="check.fontFamilyChecked" class="scope-box">
              <el-select v-model="current.cellStyle.fontFamily" placeholder="请选择" class="w-100">
                <el-option v-for="item in toolHelper.fontFamilyList" :key="item" :label="item" :value="item"></el-option>
              </el-select>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.fontFamilyScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.fontSizeChecked">文字尺寸</el-checkbox>
            </div>
            <div v-if="check.fontSizeChecked" class="scope-box">
              <el-select v-model="current.cellStyle.fontSize" placeholder="请选择" class="w-100">
                <el-option v-for="item in toolHelper.fontSizeList" :key="item" :label="item" :value="item"></el-option>
              </el-select>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.fontSizeScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.boldChecked">文字加粗</el-checkbox>
            </div>
            <div v-if="check.boldChecked" class="scope-box">
              <el-select v-model="current.cellStyle.bold" placeholder="请选择" class="w-100">
                <el-option v-for="item in propertyHelper.baseTrueFalse" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.boldScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.italicChecked">文字倾斜</el-checkbox>
            </div>
            <div v-if="check.italicChecked" class="scope-box">
              <el-select v-model="current.cellStyle.italic" placeholder="请选择" class="w-100">
                <el-option v-for="item in propertyHelper.baseTrueFalse" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.italicScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.underlineChecked">文字下划线</el-checkbox>
            </div>
            <div v-if="check.underlineChecked" class="scope-box">
              <el-select v-model="current.cellStyle.underline" placeholder="请选择" class="w-100">
                <el-option v-for="item in propertyHelper.baseTrueFalse" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.underlineScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.alignChecked">水平对齐</el-checkbox>
            </div>
            <div v-if="check.alignChecked" class="scope-box">
              <el-select v-model="current.cellStyle.align" placeholder="请选择" class="w-120">
                <el-option v-for="item in propertyHelper.alignList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.alignScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.valignChecked">竖直对齐</el-checkbox>
            </div>
            <div v-if="check.valignChecked" class="scope-box">
              <el-select v-model="current.cellStyle.valign" placeholder="请选择" class="w-120">
                <el-option v-for="item in propertyHelper.valignList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
              <span class="scope-title">作用范围：</span>
              <el-select v-model="current.cellStyle.valignScope" placeholder="请选择" class="w-150">
                <el-option v-for="item in propertyHelper.scopeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.borderChecked">边框</el-checkbox>
            </div>
            <div v-if="check.borderChecked" class="scope-box">
              <el-button type="primary">边框配置</el-button>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="current.newValueChecked">新值</el-checkbox>
            </div>
            <div v-if="current.newValueChecked" class="scope-box">
              <el-input v-model="current.newValue" placeholder="请输入新值" class="w-200">
              </el-input>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.formatChecked">格式化</el-checkbox>
            </div>
            <div v-if="check.formatChecked" class="scope-box">
              <el-select v-model="current.cellStyle.format" placeholder="请选择" class="w-200">
                <el-option v-for="item in propertyHelper.formatList" :key="item" :label="item" :value="item"></el-option>
              </el-select>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.rowHeightChecked">行高</el-checkbox>
            </div>
            <div v-if="check.rowHeightChecked" class="scope-box">
              <el-input v-model="current.rowHeight" placeholder="请输入行高" class="w-200">
              </el-input>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.colWidthChecked">列宽</el-checkbox>
            </div>
            <div v-if="check.colWidthChecked" class="scope-box">
              <el-input v-model="current.colWidth" placeholder="请输入列宽" class="w-200">
              </el-input>
            </div>
          </div>
          <div class="property-item">
            <div class="check-box">
              <el-checkbox v-model="check.pagingChecked" @change="pagingChange">分页</el-checkbox>
            </div>
            <div v-if="check.pagingChecked" class="scope-box">
              <el-select v-model="current.paging.position" placeholder="请选择分页方式">
                <el-option label="当前行前" value="before"></el-option>
                <el-option label="当前行后" value="after"></el-option>
              </el-select>
              <span class="sub-title">分页</span>
            </div>
          </div>
          <div class="property-item v-flex-start">
            <el-checkbox v-model="check.linkUrlChecked">链接</el-checkbox>
            <div v-if="check.linkUrlChecked" class="row-box">
              <div class="row">
                <span class="title">URL：</span>
                <el-input v-model="current.linkUrl" placeholder="请输入连接地址" class="w-330"></el-input>
              </div>
              <div class="row">
                <span class="title">目标窗口：</span>
                <el-select v-model="current.linkTargetWindow" placeholder="请选择" class="w-200">
                  <el-option v-for="item in propertyHelper.linkTargetWindowList" :key="item.value" :label="item.label" :value="item.value">
                  </el-option>
                </el-select>
                <el-button type="primary">URL参数设置</el-button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button @click="currentDialogVisible = false">关闭</el-button>
      <el-button type="primary" @click="save">保存</el-button>
    </span>

    <!--条件配置对话框-->
    <el-dialog v-dialogDrag title="条件配置" :visible.sync="showConditionDialog" width="602px" append-to-body>
      <el-form ref="form" :model="formCondition" label-width="130px">
        <el-form-item v-if="current && ((currentCondition && current.conditions.length>1) || (!currentCondition && current.conditions.length>=1))" label="与上一条件关系：">
          <el-select v-model="formCondition.join" placeholder="请选择条件关系" class="w-100pc">
            <el-option v-for="(item, index) in propertyHelper.joinList" :key="index" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="条件左值：">
          <div class="flex-rows-box">
            <el-select v-model="formCondition.type" placeholder="请选择类型" class="w-150">
              <el-option v-for="(item, index) in propertyHelper.propertyTypeList" :key="index" :label="item.label" :value="item.value"></el-option>
            </el-select>
            <div v-if="formCondition.type==='property'" class="margin-left-5">
              <span>属性名：</span>
              <el-select v-model="formCondition.left" placeholder="请选择属性" class="w-220">
                <el-option v-for="(item, index) in fields" :key="index" :label="item.name" :value="item.name"></el-option>
              </el-select>
            </div>
            <div v-if="formCondition.type==='expression'" class="margin-left-5">
              <span>表达式：</span>
              <el-input v-model="formCondition.left" class="w-220"></el-input>
            </div>
          </div>
        </el-form-item>
        <el-form-item label="操作符：">
          <el-select v-model="formCondition.operation" placeholder="请选择操作符" class="w-100pc">
            <el-option v-for="(item, index) in propertyHelper.operatorList" :key="index" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="值表达式：">
          <el-input v-model="formCondition.right" class="w-100pc" placeholder="请输入值表达式"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="showConditionDialog = false">取消</el-button>
        <el-button type="primary" @click="saveCondition">确定</el-button>
      </span>
    </el-dialog>
  </el-dialog>
</template>

<script>
import toolHelper from "../tools/toolHelper.js";
import propertyHelper from "./propertyHelper.js";

export default {
  props: {
    designer: {
      type: Object,
      default: () => {
        return {};
      }
    },
    fields: {
      type: Array,
      default: () => {
        return [];
      }
    },
    visible: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {
      isLoading: false,
      toolHelper,
      propertyHelper,
      // 条件列表
      conditionPropertyItems: [
        {
          name: "条件1",
          cellStyle: {},
          paging: {
            position: null,
            line: 0
          },
          conditions: []
        },
        {
          name: "条件2",
          cellStyle: {},
          paging: {
            position: null,
            line: 0
          },
          conditions: []
        }
      ],
      // 当前选中条件项
      current: null,
      // 项目鼠标enter
      currentEnter: null,
      // 当前选择的条件
      currentCondition: null,
      // 条件鼠标enter
      currentConditionEnter: null,
      // 显示条件配置对话框
      showConditionDialog: false,
      // 条件配置表单
      formCondition: {},
      // check项
      check: {
        forecolorChecked: false,
        bgcolorChecked: false,
        fontFamilyChecked: false,
        fontSizeChecked: false,
        boldChecked: false,
        italicChecked: false,
        underlineChecked: false,
        alignChecked: false,
        valignChecked: false,
        borderChecked: false,
        newValueChecked: false,
        formatChecked: false,
        rowHeightChecked: false,
        colWidthChecked: false,
        pagingChecked: false,
        linkUrlChecked: false
      }
    };
  },
  computed: {
    // 显示窗口
    currentDialogVisible: {
      get: function () {
        return this.visible;
      },
      set: function (val) {
        this.$emit("update:visible", val);
      }
    }
  },
  mounted () {},
  methods: {
    // 打开时加载文件列表
    dialogOpened () {
      this.current = null;
      this.currentEnter = null;
      this.currentCondition = null;
      this.currentConditionEnter = null;
      this.formCondition = {};
      this.conditionPropertyItems = this.designer.cellDef.conditionPropertyItems || [];
      if (this.conditionPropertyItems.length) {
        this.current = this.conditionPropertyItems[0];
        this.initCurrent();
      }
    },
    // 初始化checkbox
    initCurrent () {
      // 初始化check值
      this.check = {
        forecolorChecked: this.current.cellStyle && this.current.cellStyle.forecolor,
        bgcolorChecked: this.current.cellStyle && this.current.cellStyle.bgcolor,
        fontFamilyChecked: this.current.cellStyle && this.current.cellStyle.fontFamily,
        fontSizeChecked: this.current.cellStyle && this.current.cellStyle.fontSize,
        boldChecked: this.current.cellStyle && this.current.cellStyle.bold,
        italicChecked: this.current.cellStyle && this.current.cellStyle.italic,
        underlineChecked: this.current.cellStyle && this.current.cellStyle.underline,
        alignChecked: this.current.cellStyle && this.current.cellStyle.align,
        valignChecked: this.current.cellStyle && this.current.cellStyle.valign,
        borderChecked: this.current.cellStyle && this.current.cellStyle.border,
        newValueChecked: this.current.newValue,
        formatChecked: this.current.cellStyle && this.current.cellStyle.format,
        rowHeightChecked: this.current.rowHeight,
        colWidthChecked: this.current.colWidth,
        pagingChecked: this.current.paging && this.current.paging.position,
        linkUrlChecked: this.current.linkUrl
      };
    },
    // 项目鼠标进入
    itemMouseenter (item) {
      this.currentEnter = item;
    },
    // 项目鼠标移开
    itemMouseleave (item) {
      this.currentEnter = null;
    },
    // 项目鼠标单据
    itemClick (item) {
      this.current = item;
      this.initCurrent();
    },
    // 新增项目
    itemAdd () {
      this.$prompt("请输入项目名称", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消"
      })
        .then(({ value }) => {
          if (!value) {
            this.$message.error("项目名称不能为空");
            return;
          }
          this.current = {
            name: value,
            cellStyle: {},
            paging: null,
            conditions: []
          };
          this.conditionPropertyItems.push(this.current);
          this.initCurrent();
        })
        .catch(() => {
          this.$message.error("取消输入");
        });
    },
    // 编辑项目
    itemEdit () {
      if (!this.current) {
        this.$message.error("请选择项目");
        return;
      }
      this.$prompt("请输入项目名称", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        inputValue: this.current.name
      })
        .then(({ value }) => {
          if (!value) {
            this.$message.error("项目名称不能为空");
            return;
          }
          this.current.name = value;
        })
        .catch(() => {
          this.$message.error("取消输入");
        });
    },
    // 删除项目
    itemDelete () {
      this.$confirm("此操作删除该项目, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(() => {
          const index = this.conditionPropertyItems.findIndex(item => item === this.current);
          this.conditionPropertyItems.splice(index, 1);
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消删除"
          });
        });
    },
    // 条件鼠标进入
    conditionMouseenter (item) {
      this.currentConditionEnter = item;
    },
    // 条件鼠标移开
    conditionMouseleave (item) {
      this.currentConditionEnter = null;
    },
    // 条件鼠标单据
    conditionClick (item) {
      this.currentCondition = item;
    },
    // 新增条件
    conditionAdd () {
      if (!this.current) {
        this.$message.error("请选择项目");
        return;
      }
      this.currentCondition = null;
      this.formCondition = {};
      this.showConditionDialog = true;
    },
    // 编辑条件
    conditionEdit () {
      if (!this.currentCondition) {
        this.$message.error("请选择条件项");
        return;
      }

      if (this.currentCondition.type === "property" && !this.currentCondition.left) {
        this.currentCondition.type = "current";
      }
      this.formCondition = Object.assign({}, this.currentCondition);
      this.showConditionDialog = true;
    },
    // 删除条件
    conditionDelete () {
      if (!this.currentCondition) {
        this.$message.error("请选择条件项");
        return;
      }

      this.$confirm("此操作删除该条件, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(() => {
          const index = this.current.conditions.findIndex(item => item === this.currentCondition);
          this.current.conditions.splice(index, 1);
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消删除"
          });
        });
    },
    // 保存条件
    saveCondition () {
      if (!this.formCondition.type) {
        this.$message.error("条件左值类型不能为空！");
        return;
      }
      if (!this.formCondition.left) {
        if (this.formCondition.type === "property") {
          this.$message.error("条件左值属性名不能为空！");
          return;
        } else if (this.formCondition.type === "expression") {
          this.$message.error("条件左值表达式不能为空！");
          return;
        }
      }
      if (!this.formCondition.operation) {
        this.$message.error("操作符不能为空！");
        return;
      }
      if (!this.formCondition.right) {
        this.$message.error("值表达式不能为空！");
        return;
      }

      if (!this.formCondition.join) {
        this.formCondition.join = "and";
      }
      if (this.formCondition.type === "current") {
        this.formCondition.left = null;
        this.formCondition.type = "property";
      }
      const opItem = propertyHelper.operatorList.find(item => item.value === this.formCondition.operation);
      this.formCondition.op = opItem.op;
      if (!this.formCondition.id) {
        this.formCondition.id = this.common.getGUID();
      }
      if (!this.currentCondition) {
        // 新增条件
        this.current.conditions.push(this.formCondition);
      } else {
        // 修改条件
        Object.assign(this.currentCondition, this.formCondition);
      }

      this.showConditionDialog = false;
    },
    // 保存整个项目
    save () {
      const { cellDef } = this.designer;
      cellDef.conditionPropertyItems = this.conditionPropertyItems;
      this.currentDialogVisible = false;
    },
    // 分页项启用
    pagingChange () {
      if (!this.current.paging) {
        this.current.paging = {
          position: "before",
          line: 0
        };
      }
    }
  }
};
</script>

<style lang="scss" scoped>
.dialog-container {
  padding: 0;

  .dialog-body {
    display: flex;
    .cond-left {
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      width: 280px;

      flex: none;
    }
    .cond-center {
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      width: 320px;
      margin-left: 10px;
    }
    .cond-right {
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      flex: 1;
      margin-left: 10px;
      padding: 10px;
    }
    .no-data {
      text-align: center;
      color: #666;
      padding: 50px 0;
    }
  }

  .header-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dcdfe6;
    padding: 10px;
    .title {
      padding: 0;
    }
  }
  .item-box {
    padding: 0;
    .item {
      padding: 5px 10px;
      line-height: 22px;
      border-bottom: 1px solid #dcdfe6;
      cursor: pointer;
      &.enter {
        background-color: #409eff;
        color: white;
      }
      .txt {
        padding-right: 5px;
      }
    }
  }

  .property-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 5px;
    .check-box {
      width: 100px;
    }
    .w-330 {
      width: 330px;
    }
    &.v-flex-start {
      align-items: flex-start;
    }
    .scope-box {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      margin-left: 10px;
      .color-picker {
        margin: 0px;
      }
      .scope-title {
        margin-left: 10px;
      }
      .sub-title {
        margin-left: 5px;
      }
    }
    .row-box {
      margin-left: 10px;
      .row {
        margin-bottom: 5px;
        .title {
          width: 80px;
          display: inline-block;
          text-align: right;
        }
      }
    }
  }
}

.flex-rows-box {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 5px;
}
</style>
